<?php
include_once('../bootstrap.php');
$noticia = Doctrine::getTable('noticia')->find($_POST['id']);
@unlink(INC.'content/productos/'.$noticia->portada->src);
@unlink(INC.'content/productos/o/'.$noticia->portada->src);
@unlink(INC.'content/productos/pdf/'.$noticia->pdf);
$noticia->estado = Estado::borrado();
$noticia->save();
?>
